|
Book details / order |
BUILDING HYBRID ANDROID APPS WITH JAVA AND JAVASCRIPT APPLYING NATIVE DEVICE APIS |
Build html5-based hybrid applications for android with a mix of native java and javascript components, without using third-party libraries and wrappers such as phonegap or titanium. this concise, hands-on book takes you through the entire process, from setting up your development environment to deploying your product to an app store.
learn how to create apps that have access to native apis, such as location, vibrator, sensors, and the camera, using a javascript/java bridge—and choose the language that gives you better performance for each task. if you have experience with html5 and javascript, you’ll quickly discover why hybrid app development is the wave of the future.
set up a development environment with html, css, and javascript tools
create your first hybrid android project, using eclipse ide
use the webview control to host your hybrid application
explore hybrid application architecture, including javascript/java communication
build single-page applications, using javascript libraries such as backbone and underscore
get optimization tips and useful snippets for css, dom, and javascript
distribute your application to google play and the amazon appstore
about the authors
nizametttin gok (aka nizam) has more than 15 years of experience in client-side applications. he has involved in designing, developing and managing large-scale web applications for many years. he then transformed these outstanding experiences into mobile application space during his career in japan.
nizam believes that the invention of ajax technology was a turning point for the client-side applications. for this reason, his focus in using javascript in mobile web applications brought him into hybrid applications for android platform. he is very passionate about implementing excellent user experiences.
his personal interest is web application security and he currently maintains geoxies.com (preventing fraudelent activities) in his free time. nizam has also managed from small to large-scale teams an offshore teams successfully.
he is currently working at microsoft as a sr. software development engineer for skype android platform.
nitin khanna is a lead engineer for android at skype, with an extensive experience in mobile application development for android, ios, symbian and brew. in his free time nitin likes to contribute to open source projects. he also has experience in os middleware and protocol stack development.
chapter 1 what is android?
android applications
what is a hybrid application?
categories of applications
key characteristics of hybrid apps
why developing hybrid apps makes sense
hybrid application architecture
how do hybrid apps work on the android platform?
chapter 2 setting up your android development environment
installing eclipse on mac os x
installing android development tools
creating your first hybrid android project using eclipse ide
android development using the command line
what is adb (android debug bridge)?
using apache ant to automate building android applications
understanding the android build process
css preprocessors
installing sass
jslint framework and strict coding conventions
process html templates
minifying css and javascript files using yui compressor
using safari and chrome browsers for faster javascript debugging and ui changes
chapter 3 android fundamentals
android application architecture
key android components
security model in android
resources
compiled and uncompiled android resources
assets
structure of an android app
application manifest
activity
intents
intent resolution
intent filter
services
broadcast receiver
specifying compatible device configuration
declaring needed device features
permissions
sdk version
hands-on coding: hybrid hello world! application
chapter 4 webview, webkit, and websettings
the webview as a web browser
so what is webkit?
requesting internet permission from android manifest
instantiating and accessing the webview control
loading a web page
loading html into webview
webviewclient
loading local files into the webview
load flash files into the webview
reading files from the res/raw directory
triggering javascript functions from the java layer
opening a webview in fullscreen mode
enabling a resize event in javascript while your application is fullscreen
binding java objects to webview using the addjavascriptinterface() method
security considerations for hybrid applications
httponly cookies and the secure flag
domain whitelisting
configuring webview settings with websettings
preventing local files from being loaded in the webview
enabling javascript
setting default font size
zoom controls
hardware acceleration
chapter 5 inter-workings of the javascript and java layers
architecture of a hybrid application
calling java methods from javascript
synchronous apis
asynchronous apis
calling javascript methods from java
routing data to the correct javascript receiver
deferred object pattern
register success callback using deferred.done()
register failure callback using deferred.fail()
register progress callback using deferred.progress()
simpler callback registration with .then()
synchronizing multiple asynchronous events with $.when()
resolve a deferred object
reject a deferred object
use of promise
use of deferred.progress()
cache manager for handling multiple deferred objects
thread safety
chapter 6 html architecture for hybrid applications
architecture of a web application
single page applications (spa)
key design considerations for single page applications
the libraries and frameworks for your hybrid apps
backbone.js for mvc framework
underscore.js for utility support
iscroll.js for scrolling
iscroll caveats
jquery.js for javascript application
css reset avoids browser inconsistencies
your home index.html
viewport meta tag
viewport width
viewport scaling with the content attribute
responsive design and media queries
em or percent (%) unit for scalable interface
css3 introduces rem unit
opacity or rgba: what is the difference?
event pooling
chapter 7 css, dom, and [removed] optimization tips and useful snippets
chapter 8 publishing apps for android
digitally signing applications
protecting your application with proguard
google play
registering as a publisher
developer console
uploading an application
amazon app store
self-signing and the amazon app store
amazon app store sign up process
uploading an application
understanding the application approval process
colophon.
Author : Nizametttin gok, nitin khanna
Publication : Oreilly
Isbn : 9789351102380
Store book number : 105
NRS 480.00
|
|
|
|
|
|
|
|
|
|